<script setup lang="ts">
import { ref } from 'vue'

const phone = ref<string>('13812345678')
</script>

<template>
  <div class="notify-page">
    原来:13812345678<br />
    脱敏后：{{ phone.replace(/^(\d{3})(\d{4})(\d{4})$/, '$1****$3') }}
  </div>
</template>

<style lang="scss" scoped></style>
